package headfirst.combined.djview;

public class RPMControllerAdapter implements ControllerInterface {
	RPMAdapter rpmAdapter;
	DJView view;
	
	public RPMControllerAdapter(RPMAdapter rpmAdapter){
		this.rpmAdapter = rpmAdapter;
		view = new DJView(this, this.rpmAdapter);
        view.createView();
        view.createControls();
		view.disableStopMenuItem();
		view.disableStartMenuItem();
		rpmAdapter.initialize();
	}
	public void start(){
		rpmAdapter.on();
	}
	public void stop(){
		rpmAdapter.off();
	}
	public void increaseBPM(){
		rpmAdapter.setBPM(1);
	}
	public void decreaseBPM(){
		rpmAdapter.setBPM(0);
	}
 	public void setBPM(int bpm){}
}
